package week03.starbucks_ex;

public class CoffeeDecorator extends DecoratorA {
    private double price=11;

    public CoffeeDecorator(IDrink iDrink) {
        super(iDrink);
    }
    public void setCoffee() {
        System.out.println("coffee"+price);
    }
    public double getPrice() {
        super.getPrice();
        setCoffee();
        return price;
    }
}
